home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000217-20000824
/
000211_news@columbia.edu _Thu Apr 20 19:36:19 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2000-08-23
|
2KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id TAA20293
for <kermit.misc@cpunix.cc.columbia.edu>; Thu, 20 Apr 2000 19:36:19 -0400 (EDT)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id TAA07918
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 20 Apr 2000 19:36:18 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id TAA20137
for kermit.misc@watsun.cc.columbia.edu; Thu, 20 Apr 2000 19:10:08 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: dat_thuc_nguyen@my-deja.com
Subject: Lazy man is more productive
Date: Thu, 20 Apr 2000 22:56:18 GMT
Organization: Deja.com - Before you buy.
Message-ID: <8do1ua$jjr$1@nnrp1.deja.com>
To: kermit.misc@columbia.edu
For long I am very frustrated of having to do a lot of typing:
C-Kermit>.avar = 19
C-Kermit>.bvar = 32
...
After a while, if I want to know the value of avar, I have to type a
long string:
C-Kermit>echo \m(avar)
I decided to put an end to this nightmare by defining a display
function:
C-Kermit>def dp { echo \m(\%1) }
>From now on, in order to know the value of avar, I only have to type:
C-Kermit>dp avar
Short and easy, like the display command of a debugger. This lazy thing
even makes a script more readable.
Guess what? Try the following:
C-Kermit>dp dp
Now I enjoy C-Kermit much more.
Dat
Sent via Deja.com http://www.deja.com/
Before you buy.